package com.kaoshi.myweb.webtest.jpatest.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kaoshi.myweb.webtest.jpatest.entity.UserJpaModel;
import com.kaoshi.myweb.webtest.jpatest.respository.UserJpaRepository;

@Service
@Transactional
public class UserJpaService {
	
	@Autowired
	private UserJpaRepository userRepository;
	
	public void testAdd(UserJpaModel userModel){
		userRepository.save(userModel);
	}
}
